package com.web.kdl.config.Minio;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author： shulibin
 * @Date： 2025/9/3 10:51
 * @Describe：
 */

@ConfigurationProperties(prefix = "minio")
@Data
@Component
public class MinioProperties {
    private String url;
    private String username;
    private String password;
    private Map<String, BucketConfig> buckets;

    @Data
    public static class BucketConfig {
        private String name;
        private String policy;
        private boolean autoCreate;
    }
}
